def inc(var x : Int) : Int {
    return x + 1;
}

def square(var x : Int) : Int {
    return x * x;
}

def dbl(var x : Int) : Int {
    return x * 2;
}

var f : Int -> Int = inc |> square |> inc;
var g : Int -> Int = dbl;
var t : Int -> Int = f |> g;

print(t(3));
